package com.collect.collect.api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.collect.collect.api.entity.DataMonitor;

import java.util.List;

public interface ISlaveService extends IService<DataMonitor> {

    /**
     * 获取十条监控数据
     * @return
     */
    public List<DataMonitor> getDataMonitorList10();

    /**
     * 程序计数器+1
     * @param monitorId
     * @param counter
     * @return
     */
    boolean updateAddCounter(String monitorId,int counter);

    /**
     * 根据ID删除数据
     * @param monitorId
     * @return
     */
    boolean delete(String monitorId);
}
